package com.yihu.cms.service;

import java.io.IOException;

import com.yihu.beans.ResultVO;
import com.yihu.beans.WaterfallCondition;
import com.yihu.dataService.hessian.mongodb.interfaceService.UserHService;
import com.yihu.dataService.hessian.mongodb.interfaceService.WaterfallHService;
import com.yihu.dataService.hessian.resource.ResourceMongoDBManager;

public class WaterfallService {
	private WaterfallHService waterfallService = null;
	public WaterfallService(){
		try {
			waterfallService= (WaterfallHService)ResourceMongoDBManager
					.getSingleton().getBeans("waterfallServiceHSC");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public String getWaterfallPaging(WaterfallCondition c){
		String result  = waterfallService.getWaterfallPaging(c);
		return result;
	}
	
	public ResultVO waterfallLike(WaterfallCondition c){
		ResultVO result  = waterfallService.waterfallLike(c);
		return result;
	}
	public ResultVO waterfallFollow(WaterfallCondition c){
		ResultVO result  = waterfallService.waterfallFollow(c);
		return result;
	}
}
